/**
 * 
 */
package org.statewalker.core;

/**
 * @author kotelnikov
 */
public class SimpleStateExecutor implements IStateExecutor {

    /**
     * 
     */
    public SimpleStateExecutor() {
        super();
    }

    /**
     * @see org.statewalker.core.IStateExecutor#activateState(Process,
     *      org.statewalker.core.IState, org.statewalker.core.IEvent)
     */
    public void activateState(Process process, IState state, IEvent event) {
        state.activate(event, process.getStateCallback());
    }

    /**
     * @see org.statewalker.core.IStateExecutor#deactivateState(Process,
     *      org.statewalker.core.IState, org.statewalker.core.IEvent)
     */
    public void deactivateState(Process process, IState state, IEvent event) {
        state.deactivate(event, process.getStateCallback());
    }

}
